using System;
using System.Collections.Generic;
using System.Text;

using System.Configuration;
using Kenly.DBFramework;

namespace Kenly.DBFramework.TestModel
{
    public static class SystemConfig
    {
        private static AppSettingsReader _appReader = new AppSettingsReader();
      
        public static string GetConfigValue(string key)
        {
            return _appReader.GetValue(key, typeof(string)).ToString();
        }

        public static DatabaseType DatabaseType
        {
            get
            {
                return DatabaseType.SqlServer;
            }
        }

        public static string ConnectionString
        {
            get
            {
                return GetSql2005ConnectionString();
            }
        }

        public static string GetSql2005ConnectionString()
        {
            string str = GetConfigValue("Sql2005ConnectionString");
            return str;
        }

        //public static string GetSql2000ConnectionString()
        //{
        //    string str = GetConfigValue("Sql2000ConnectionString");
        //    return str;
        //}

        //public static string GetOracleConnectionString()
        //{
        //    string str = GetConfigValue("OracleConnectionString");
        //    return str;
        //}

    }
}
